<template>
    <view class="data-v-0edfcd61">
        <scroll-view class="scope-container data-v-0edfcd61" :scrollY="true" :style="'min-height: 100vh; background:#101113'">
            <view class="header-tabs data-v-0edfcd61">
                <view
                    @tap="__e"
                    :class="['tab-item', 'data-v-0edfcd61', current == index ? 'active' : '']"
                    :data-current="index"
                    :data-event-opts="[['tap', [['currentChange', ['$event']]]]]"
                    v-for="(item, index) in typeTextList"
                    :key="index"
                >
                    <text class="text data-v-0edfcd61">{{ '' + item + '' }}</text>
                </view>
            </view>
            <image
                @tap="__e"
                class="kaishangjilu data-v-0edfcd61"
                :data-event-opts="[['tap', [['handleRecordList', ['$event']]]]]"
                src="https://img121.7dun.com/yuanqimali/renyimen/zhongshangjilu.png"
            ></image>
            <view class="list-box data-v-0edfcd61">
                <view class="sku-list-box data-v-0edfcd61">
                    <swiper
                        @change="__e"
                        class="data-v-0edfcd61"
                        :current="current"
                        :data-event-opts="[['change', [['currentChange2', ['$event']]]]]"
                        :style="'min-height:100vh;' + 'height:' + swiperHeight + 'px' + ';'"
                    >
                        <swiper-item class="data-v-0edfcd61">
                            <view class="data-v-0edfcd61" id="content-wrap">
                                <view class="sku-list data-v-0edfcd61" v-for="(item, index) in $root.l0" :key="index">
                                    <view
                                        class="top-title-box data-v-0edfcd61"
                                        :style="
                                            'background-image:' +
                                            (item[$orig].level == 1
                                                ? bgImgs[0]
                                                : item[$orig].level == 2
                                                ? bgImgs[1]
                                                : item[$orig].level == 4
                                                ? bgImgs[2]
                                                : item[$orig].level == 5
                                                ? bgImgs[3]
                                                : bgImgs[4]) +
                                            ';'
                                        "
                                    >
                                        <view class="top-title-box-gl data-v-0edfcd61">
                                            概率
                                            <text
                                                class="top-title-box-num data-v-0edfcd61"
                                                :style="
                                                    'color:' +
                                                    (item[$orig].level == 1
                                                        ? '#E2E7F3'
                                                        : item[$orig].level == 2
                                                        ? '#1BFFDE'
                                                        : item[$orig].level == 4
                                                        ? '#FC8F18'
                                                        : item[$orig].level == 5
                                                        ? '#FC18D5'
                                                        : '#FFFFFF') +
                                                    ';'
                                                "
                                            >
                                                {{ item.g0 + '%' }}
                                            </text>
                                            （此概率为当前赏别出赏概率）
                                        </view>
                                    </view>

                                    <view class="sku-scroll data-v-0edfcd61">
                                        <view
                                            @tap="__e"
                                            class="sku-box data-v-0edfcd61"
                                            :data-event-opts="[
                                                ['tap', [['showDetailImagePopup', ['$0', '$1'], [[['skus', '', index2]], [['info.sku_level', '', index, 'odds']]]]]]
                                            ]"
                                            v-if="item[$orig].level == item2.level"
                                            v-for="(item2, index2) in skus"
                                            :key="index2"
                                        >
                                            <view class="sku-item data-v-0edfcd61">
                                                <view class="sku-item-list data-v-0edfcd61">
                                                    <image
                                                        class="icon data-v-0edfcd61"
                                                        src="https://img121.7dun.com/yuanqimali/fudai/rIcon1.png"
                                                        v-if="item[$orig].level == 1"
                                                    ></image>
                                                    <block v-else>
                                                        <image
                                                            class="icon data-v-0edfcd61"
                                                            src="https://img121.7dun.com/yuanqimali/fudai/srIcon1.png"
                                                            v-if="item[$orig].level == 2"
                                                        ></image>
                                                        <block v-else>
                                                            <image
                                                                class="icon data-v-0edfcd61"
                                                                src="https://img121.7dun.com/yuanqimali/fudai/ssrIcon1.png"
                                                                v-if="item[$orig].level == 4"
                                                            ></image>
                                                            <block v-else>
                                                                <image
                                                                    class="icon data-v-0edfcd61"
                                                                    src="https://img121.7dun.com/yuanqimali/fudai/urIcon1.png"
                                                                    v-if="item[$orig].level == 5"
                                                                ></image>
                                                            </block>
                                                        </block>
                                                    </block>
                                                    <view class="sku-image data-v-0edfcd61">
                                                        <image class="data-v-0edfcd61" mode="scaleToFill" :src="item2.thumb"></image>
                                                    </view>
                                                    <image
                                                        class="data-v-0edfcd61"
                                                        src="https://img121.7dun.com/20230207NewImg/wuxianshang/newproImgBg.png"
                                                        style="position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -1"
                                                    ></image>
                                                </view>
                                                <view class="sku-tilit data-v-0edfcd61">{{ item2.title }}</view>
                                                <view class="price-box data-v-0edfcd61">
                                                    售价：
                                                    <price-display @__l="__l" class="data-v-0edfcd61" :info="info" :vueId="'6bebee9a-1-' + index + '-' + index2"></price-display>
                                                </view>
                                            </view>
                                        </view>
                                    </view>
                                </view>
                            </view>
                        </swiper-item>
                        <swiper-item class="data-v-0edfcd61">
                            <view class="sku-list data-v-0edfcd61" style="margin-bottom: 0" v-if="item.level == 6" v-for="(item, index) in info.word_level" :key="index"></view>
                            <view class="sku-scroll-none data-v-0edfcd61" id="content-wrap1">
                                <view
                                    @tap="__e"
                                    class="sku-box data-v-0edfcd61"
                                    :data-event-opts="[
                                        ['tap', [['showDetailImagePopup', ['$0', '$1'], [[['info.word_skus', '', index2]], [['info.word_skus', '', index2, 'odds']]]]]]
                                    ]"
                                    v-if="item2.level == 6"
                                    v-for="(item2, index2) in info.word_skus"
                                    :key="index2"
                                >
                                    <view class="sku-item data-v-0edfcd61">
                                        <view class="sku-item-new data-v-0edfcd61" style="position: relative">
                                            <image class="icon data-v-0edfcd61" src="https://img121.7dun.com/yuanqimali/fudai/spIcon.png"></image>
                                            <view class="sku-image data-v-0edfcd61">
                                                <image class="data-v-0edfcd61" mode="scaleToFill" :src="item2.thumb"></image>
                                            </view>
                                            <image
                                                class="data-v-0edfcd61"
                                                src="https://img121.7dun.com/20230207NewImg/wuxianshang/newproImgBg.png"
                                                style="position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -1"
                                            ></image>
                                        </view>
                                        <view class="sku-tilit data-v-0edfcd61">{{ item2.title }}</view>
                                        <view class="price-box data-v-0edfcd61">
                                            售价：
                                            <price-display @__l="__l" class="data-v-0edfcd61" :info="info" :vueId="'6bebee9a-2-' + index2"></price-display>
                                        </view>
                                    </view>
                                </view>
                            </view>
                        </swiper-item>
                    </swiper>
                    <view class="data-v-0edfcd61" style="padding-bottom: 400rpx"></view>
                </view>
            </view>
        </scroll-view>
        <view class="footer data-v-0edfcd61">
            <view class="footer-shuoming data-v-0edfcd61" v-if="lianjiCiShu < emitWordTotal - limitNum">
                用
                <text class="data-v-0edfcd61">{{ emitWordTotal - limitNum }}</text>
                次连击把我打败之前 你是拿不到秘宝的
            </view>
            <view class="footer-shuoming data-v-0edfcd61" v-else>看在勇气的份上也许我会送你一次夺取秘宝的机会</view>
            <view class="footer-up-fl data-v-0edfcd61">
                <view
                    @tap="__e"
                    class="footer-thumb data-v-0edfcd61"
                    :data-event-opts="[['tap', [['showDetailImagePopup', ['$0', '$1'], ['info.team_skus.__$n0', 'info.team_skus.__$n0.odds']]]]]"
                >
                    <image class="footer-thumb-img data-v-0edfcd61" :src="info.team_skus[0].thumb" v-if="$root.g1 > 0"></image>
                </view>
                <view class="footer-buchong data-v-0edfcd61">
                    <view class="footer-buchong-title data-v-0edfcd61" v-if="$root.g2 > 0">{{ info.team_skus[0].title }}</view>
                    <view class="footer-buchong-tuanzhan data-v-0edfcd61">{{ '每' + emitTotal + '发必送出团战赏，随机送出，发数越多概率越高哦。' }}</view>
                    <view class="footer-buchong-jindutiao data-v-0edfcd61">
                        <progress
                            activeColor="#16F7FF"
                            backgroundColor="#96BDCE"
                            class="data-v-0edfcd61"
                            :percent="(nowTeamTotal / emitTotal) * 100"
                            strokeWidth="9"
                            style="width: 100%"
                        ></progress>
                    </view>
                </view>
                <navigator class="footer-navig data-v-0edfcd61" url="/pages/rule/index?type=renyi">
                    <image class="data-v-0edfcd61" src="https://img121.7dun.com//yuanqimali/renyimen/wenhao.png"></image>
                    玩法说明
                </navigator>
                <view class="footer-up-fr data-v-0edfcd61">
                    <view class="footer-jicishu data-v-0edfcd61" v-if="current == 0">
                        ¥
                        <text class="data-v-0edfcd61">{{ info.money_price / 100 }}</text>
                        /次
                    </view>
                    <view class="footer-cishu data-v-0edfcd61" v-else>
                        夺取剩余次数
                        <text class="data-v-0edfcd61">{{ duocishu || 0 }}</text>
                        次
                    </view>
                </view>
            </view>
            <view class="footer-pgs data-v-0edfcd61">
                <view class="footer-pgs-cp data-v-0edfcd61">CP</view>
                <view class="footer-pgs-r data-v-0edfcd61">
                    <progress
                        activeColor="#38F7FE"
                        backgroundColor="#000000"
                        class="data-v-0edfcd61"
                        :percent="((lianjiCiShu + limitNum) / emitWordTotal) * 100"
                        strokeWidth="12"
                        style="width: 100%"
                    ></progress>
                </view>
                <view class="footer-pgs-shuju data-v-0edfcd61">{{ '' + limitNum + '/' + emitWordTotal + '' }}</view>
            </view>
            <view class="footer-swiper data-v-0edfcd61">
                <movable-area class="data-v-0edfcd61" style="width: 552rpx; height: 134rpx" v-if="current == 0">
                    <movable-view
                        @change="__e"
                        @touchend.stop.prevent="__e"
                        class="data-v-0edfcd61"
                        :damping="80"
                        :data-event-opts="[
                            ['change', [['onMovableChange', ['$event']]]],
                            ['touchend', [['onTouchEndChange', ['$event']]]]
                        ]"
                        direction="horizontal"
                        :inertia="true"
                        style="width: 280rpx; height: 132rpx; position: absolute; left: 0; top: 0"
                        :x="movableX"
                    >
                        <view class="footer-swiper-one data-v-0edfcd61">
                            <view class="footer-swiper-btn data-v-0edfcd61">
                                <image
                                    @tap.stop.prevent="__e"
                                    class="footer-swiper-new data-v-0edfcd61"
                                    :data-event-opts="[['tap', [['handleJianClick', ['$event']]]]]"
                                    src="https://img121.7dun.com/yuanqimali/renyimen/goumai-on.png"
                                ></image>
                                <view @tap.stop.prevent="__e" class="footer-swiper-jian data-v-0edfcd61" :data-event-opts="[['tap', [['handleJianClick', ['$event']]]]]"></view>
                                <view @tap.stop.prevent="__e" class="footer-swiper-mai data-v-0edfcd61" :data-event-opts="[['tap', [['pay', ['$0'], ['lianjiCiShu']]]]]"></view>
                                <view @tap.stop.prevent="__e" class="footer-swiper-jia data-v-0edfcd61" :data-event-opts="[['tap', [['handleJiaClick', ['$event']]]]]"></view>
                            </view>
                        </view>
                    </movable-view>
                </movable-area>
                <movable-area class="data-v-0edfcd61" style="width: 552rpx; height: 134rpx" v-else>
                    <movable-view
                        @change="__e"
                        @touchend.stop.prevent="__e"
                        class="data-v-0edfcd61"
                        :damping="80"
                        :data-event-opts="[
                            ['change', [['onMovableChange', ['$event']]]],
                            ['touchend', [['onTouchEndChange', ['$event']]]]
                        ]"
                        direction="horizontal"
                        :inertia="true"
                        style="width: 280rpx; height: 132rpx; position: absolute; right: 0; top: 0"
                        :x="movableX"
                    >
                        <view class="footer-swiper-two data-v-0edfcd61">
                            <image class="footer-swiper-two-jinzhi data-v-0edfcd61" src="https://img121.7dun.com/yuanqimali/renyimen/shiyong.png" v-if="duocishuNum == 0"></image>
                            <view class="footer-swiper-btn data-v-0edfcd61" v-else>
                                <image
                                    @tap.stop.prevent="__e"
                                    class="footer-swiper-new data-v-0edfcd61"
                                    :data-event-opts="[['tap', [['handleJianClick', ['$event']]]]]"
                                    src="https://img121.7dun.com/yuanqimali/renyimen/shiyong-on.png"
                                ></image>
                                <view @tap.stop.prevent="__e" class="footer-swiper-jian data-v-0edfcd61" :data-event-opts="[['tap', [['handleCountJian', ['$event']]]]]"></view>
                                <view
                                    @tap.stop.prevent="__e"
                                    class="footer-swiper-mai data-v-0edfcd61"
                                    :data-event-opts="[['tap', [['disableMultiClick', ['$0'], ['handleBaoPay']]]]]"
                                ></view>
                                <view @tap.stop.prevent="__e" class="footer-swiper-jia data-v-0edfcd61" :data-event-opts="[['tap', [['handleCountJia', ['$event']]]]]"></view>
                            </view>
                        </view>
                    </movable-view>
                </movable-area>
            </view>
            <view class="footer-di data-v-0edfcd61">
                <view class="footer-di-fl data-v-0edfcd61">
                    <view class="footer-di-fl-num data-v-0edfcd61">
                        {{ lianjiCiShu }}
                        <text class="footer-di-fl-ci data-v-0edfcd61">次</text>
                    </view>
                    <image class="footer-di-fl-img data-v-0edfcd61" src="https://img121.7dun.com/yuanqimali/renyimen/lianji.png" v-if="current == 1"></image>
                </view>
                <view class="footer-di-ct data-v-0edfcd61">
                    <image
                        @tap="__e"
                        class="data-v-0edfcd61"
                        :data-event-opts="[['tap', [['handleMaxClick', ['$event']]]]]"
                        src="https://img121.7dun.com/yuanqimali/renyimen/maxClick-on.png"
                    ></image>
                    <image class="footer-di-ct-img data-v-0edfcd61" src="https://img121.7dun.com/yuanqimali/renyimen/maxClick.png" v-if="current == 1"></image>
                </view>
                <view class="footer-di-fr data-v-0edfcd61">
                    <view class="footer-di-fr-num data-v-0edfcd61">
                        {{ duocishuNum }}
                        <text class="footer-di-fr-ci data-v-0edfcd61">次</text>
                    </view>
                    <image class="footer-di-fr-img data-v-0edfcd61" src="https://img121.7dun.com/yuanqimali/renyimen/duoqu.png" v-if="current == 0"></image>
                </view>
            </view>
        </view>
        <pay-card
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            @close="
                __e($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            @success="
                __e($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            class="data-v-0edfcd61"
            :data-event-opts="[
                ['^close', [['hidePayPopup']]],
                ['^success', [['paySuccess']]]
            ]"
            :info="payInfo"
            :payTotal="payTotal"
            vueId="6bebee9a-3"
            v-if="isPayPopup"
        ></pay-card>
        <uni-popup
            @__l="__l($event, { ref: 'detailPopup' })"
            class="data-v-0edfcd61 vue-ref"
            data-ref="detailPopup"
            style="z-index: 1000"
            type="bottom"
            vueId="6bebee9a-4"
            :vueSlots="['default']"
        >
            <box-sku-popup
                @__l="__l($event, { eventOpts: [['^close', [['hideDetailImagePopup']]]] })"
                @close="__e($event, { eventOpts: [['^close', [['hideDetailImagePopup']]]] })"
                class="data-v-0edfcd61"
                :data-event-opts="[['^close', [['hideDetailImagePopup']]]]"
                :detailImageList="info.detail_images"
                :skuList="info.skus"
                :vueId="'6bebee9a-5' + ',' + '6bebee9a-4'"
            ></box-sku-popup>
        </uni-popup>
        <open-box-popup-theme2
            @__l="__l($event, { eventOpts: [['^close', [['goBack']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['goBack']]]] })"
            :boxImg="boxImage"
            boxImgMode="square"
            class="data-v-0edfcd61"
            :config="config"
            :data-event-opts="[['^close', [['goBack']]]]"
            :doubleBoxCard="is_doubleBoxCard"
            :levelskus="info.skus"
            :order="order"
            :sku_level="info.sku_level"
            :tryMode="isTryMode"
            vueId="6bebee9a-6"
            v-if="isShowResultPopup"
        ></open-box-popup-theme2>
        <open-box-popup
            @__l="__l($event, { eventOpts: [['^close', [['goOpenBack']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['goOpenBack']]]] })"
            class="data-v-0edfcd61"
            :data-event-opts="[['^close', [['goOpenBack']]]]"
            :isNavbarEnable="true"
            :isOpen="isOpen"
            :istry="istry"
            :order="order"
            :payTotal="payTotal"
            :skus="openSkus"
            vueId="6bebee9a-7"
            v-if="isOpenPopup"
        ></open-box-popup>
        <imagepop
            @__l="__l($event, { eventOpts: [['^close', [['isimagepopfun']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['isimagepopfun']]]] })"
            class="data-v-0edfcd61"
            :data-event-opts="[['^close', [['isimagepopfun']]]]"
            :info="skuinfo"
            vueId="6bebee9a-8"
            v-if="isimagepop"
        ></imagepop>
        <view class="not-found-c data-v-0edfcd61" v-if="isNotFound">活动不见了哦~</view>
        <free-ticket-float-btn
            @__l="__l($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            @useFreeTicket="__e($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            class="data-v-0edfcd61"
            :data-event-opts="[['^useFreeTicket', [['useFreeTicket']]]]"
            nodeType="fudai"
            :uuid="uuid"
            vueId="6bebee9a-9"
            v-if="info.is_invite_enabled"
        ></free-ticket-float-btn>
        <danmus @__l="__l" class="data-v-0edfcd61" :list="danmuList" :setting="danmuSetting" vueId="6bebee9a-10" v-if="danmuSetting.is_enabled"></danmus>
        <record-list
            @__l="__l($event, { eventOpts: [['^close', [['handleRecordListClose']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['handleRecordListClose']]]] })"
            class="data-v-0edfcd61"
            :data-event-opts="[['^close', [['handleRecordListClose']]]]"
            :info="info"
            :room="info.room"
            :skuLevel="skuLevel"
            vueId="6bebee9a-11"
            v-if="isShowRankList"
        ></record-list>
    </view>
</template>

<script>
import priceDisplay from '@/components/PriceDisplay/PriceDisplay';
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup';
import boxSkuPopup from '@/components/BoxSkuPopup/BoxSkuPopup';
import openBoxPopupTheme2 from '@/components/OpenBoxPopupTheme2/OpenBoxPopupTheme2';
import openBoxPopup from '@/pages/renyimen/components/OpenBoxPopup';
import freeTicketFloatBtn from '@/components/FreeTicketFloatBtn/FreeTicketFloatBtn';
import danmus from '@/components/Danmus/Danmus';
import payCard from '@/pages/renyimen/components/PayCard';
import recordList from '@/pages/renyimen/components/RecordList';
import imagepop from '@/pages/renyimen/components/imagepop';
import bangDan from '@/pages/renyimen/components/bangDan';
import wanfa from '@/pages/renyimen/components/wanfa';
import jiangli from '@/pages/renyimen/components/jiangli';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/renyimen/detail'],
    {
        '0876': function (t, i, n) {
            'use strict';

            var e = n('35db');
            n.n(e).a;
        },
        '35db': function (t, i, n) {},
        7341: function (t, i, n) {
            'use strict';

            (function (t) {
                var e = n('4ea4');
                Object.defineProperty(i, '__esModule', {
                    value: true
                });
                i.default = void 0;
                var o = e(n('9523'));
                function u(t, i) {
                    var n = Object.keys(t);
                    if (Object.getOwnPropertySymbols) {
                        var e = Object.getOwnPropertySymbols(t);
                        if (i) {
                            e = e.filter(function (i) {
                                return Object.getOwnPropertyDescriptor(t, i).enumerable;
                            });
                        }
                        n.push.apply(n, e);
                    }
                    return n;
                }
                function s(t) {
                    for (var i = 1; i < arguments.length; i++) {
                        if (null != arguments[i]) {
                            var n = arguments[i];
                        } else {
                            var n = {};
                        }
                        if (i % 2) {
                            u(Object(n), true).forEach(function (i) {
                                (0, o.default)(t, i, n[i]);
                            });
                        } else {
                            Object.getOwnPropertyDescriptors
                                ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
                                : u(Object(n)).forEach(function (i) {
                                      Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
                                  });
                        }
                    }
                    return t;
                }
                var a = {
                    components: {
                        OpenBoxPopup: function () {
                            n.e('pages/renyimen/components/OpenBoxPopup')
                                .then(
                                    function () {
                                        return resolve(n('a929'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        PayCard: function () {
                            Promise.all([n.e('common/vendor'), n.e('pages/renyimen/components/PayCard')])
                                .then(
                                    function () {
                                        return resolve(n('dbde'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        RecordList: function () {
                            n.e('pages/renyimen/components/RecordList')
                                .then(
                                    function () {
                                        return resolve(n('88ea'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        imagepop: function () {
                            n.e('pages/renyimen/components/imagepop')
                                .then(
                                    function () {
                                        return resolve(n('44a6'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        bangDan: function () {
                            Promise.all([n.e('common/vendor'), n.e('pages/renyimen/components/bangDan')])
                                .then(
                                    function () {
                                        return resolve(n('6e75'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        wanfa: function () {
                            n.e('pages/renyimen/components/wanfa')
                                .then(
                                    function () {
                                        return resolve(n('311b'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        },
                        jiangli: function () {
                            n.e('pages/renyimen/components/jiangli')
                                .then(
                                    function () {
                                        return resolve(n('185a'));
                                    }.bind(null, n)
                                )
                                .catch(n.oe);
                        }
                    },
                    data: function () {
                        return {
                            noclick: true,
                            huadong: false,
                            movableX: 0,
                            movableXNew: 0,
                            swiperHeight: 0,
                            duocishu: null,
                            duocishuNum: 0,
                            limitNum: 0,
                            nowTeamTotal: null,
                            emitTotal: null,
                            limitCountNum: 0,
                            lianjiCiShu: 1,
                            emitWordTotal: 1,
                            current: 0,
                            types: ['pending', 'resale_pending'],
                            typeTextList: ['连击池', '秘宝池'],
                            bgImgs: [
                                'url(https://img121.7dun.com/yuanqimali/fudai/rBg.png)',
                                'url(https://img121.7dun.com/yuanqimali/fudai/srBg.png)',
                                'url(https://img121.7dun.com/yuanqimali/fudai/ssrBg.png)',
                                'url(https://img121.7dun.com/yuanqimali/fudai/urBg.png)',
                                'url()'
                            ],
                            uuid: '',
                            isInit: false,
                            isPayPopup: false,
                            payTotal: 1,
                            info: {
                                min_lucky_score: ''
                            },
                            order: {},
                            pageUuid: '',
                            isNotFound: false,
                            isShowResultPopup: false,
                            danmuSetting: {},
                            danmuList: [],
                            config: {},
                            detailImageList: [],
                            levelFilter: 0,
                            isTryMode: false,
                            isShowRankList: false,
                            wining_list: [],
                            isimagepop: false,
                            is_doubleBoxCard: 0,
                            skuinfo: {},
                            skusList: [],
                            skus_ultimate: {},
                            openSkus: [],
                            isOpenPopup: false,
                            istry: false,
                            isOpen: false
                        };
                    },
                    computed: s(
                        s({}, (0, n('26cb').mapGetters)(['userInfo'])),
                        {},
                        {
                            bgImage: function () {
                                return 'https://cdn2.hquesoft.com/box/fudai/detail_bg.png';
                            },
                            boxImage: function () {
                                return this.info.image_3d || 'https://cdn2.hquesoft.com/box/fudai/box.png';
                            },
                            skuLevel: function () {
                                return this.info.sku_level || [];
                            },
                            skus: function () {
                                var that = this;
                                return this.levelFilter
                                    ? this.info.skus.filter(function (i) {
                                          return i.level === that.levelFilter;
                                      })
                                    : this.info.skus || [];
                            },
                            payInfo: function () {
                                return {
                                    page_uuid: this.pageUuid,
                                    title: this.info.title,
                                    pay_total: this.payTotal,
                                    total_list: this.info.total_list,
                                    money_price: this.info.money_price,
                                    score_price: this.info.score_price
                                };
                            },
                            titleBgColor: function () {
                                return ' ';
                            },
                            titleColor: function () {
                                return '#ffffff';
                            },
                            setTitleText: function () {
                                t.setNavigationBarTitle({
                                    title: this.info.title
                                });
                            },
                            discountTips: function () {
                                for (t = this.info.total_list || [], i = t.length - 1, void 0; i >= 0; i--) {
                                    var t;
                                    var i;
                                    if (t[i].is_discount) {
                                        var n = t[i].total + '连开优惠';
                                        if (t[i].money_discount) {
                                            n += t[i].money_discount / 100 + '元';
                                        }
                                        if (t[i].score_discount) {
                                            n += t[i].score_discount + this.scoreAlias;
                                        }
                                        return n;
                                    }
                                }
                                return false;
                            },
                            width_value: function () {
                                return (this.userInfo.lucky_score / this.info.min_lucky_score) * 100 > 100
                                    ? 100
                                    : (this.userInfo.lucky_score / this.info.min_lucky_score) * 100 < 0
                                    ? 0
                                    : Math.trunc((this.userInfo.lucky_score / this.info.min_lucky_score) * 100);
                            }
                        }
                    ),
                    watch: {},
                    filters: {},
                    onLoad: function (t) {
                        this.uuid = t.uuid;
                    },
                    onUnload: function () {},
                    onPullDownRefresh: function () {
                        this.$showPullRefresh();
                        this.initData();
                        this.setTitleText();
                    },
                    onShow: function () {
                        var that = this;
                        this.$nextTick(function () {
                            that.setSwiperHeight();
                            that.current = 0;
                            that.movableX = 0;
                        });
                        t.showLoading({
                            title: '加载中'
                        });
                        this.initData()
                            .then(function (n) {
                                that.isInit = true;
                                t.hideLoading();
                                that.$http('/renyi/change', 'POST', {
                                    renyi_id: that.info.id
                                }).then(function (t) {
                                    that.pageUuid = t.data.page_uuid;
                                    that.fetchList();
                                });
                            })
                            .catch(function (t) {
                                that.isNotFound = true;
                            });
                    },
                    onReachBottom: function () {},
                    methods: {
                        doudong: function () {
                            var that = this;
                            setTimeout(function () {
                                that.huadong ||
                                    ((that.movableXNew -= 15),
                                    setTimeout(function () {
                                        that.huadong ||
                                            ((that.movableXNew += 30),
                                            setTimeout(function () {
                                                that.huadong ||
                                                    ((that.movableXNew -= 30),
                                                    setTimeout(function () {
                                                        that.huadong ||
                                                            ((that.movableXNew += 30),
                                                            setTimeout(function () {
                                                                that.huadong || (that.movableXNew = 10);
                                                            }, 100));
                                                    }, 100));
                                            }, 100));
                                    }, 100));
                            }, 100);
                        },
                        onMovableChange: function (t) {
                            if ('touch' === t.detail.source) {
                                this.movableXNew = t.detail.x;
                            }
                        },
                        onTouchEndChange: function () {
                            var that = this;
                            this.movableX = this.movableXNew;
                            this.$nextTick(function () {
                                that.movableX < 80 ? ((that.movableX = 0), (that.current = 0)) : ((that.movableX = 146), (that.current = 1));
                            });
                        },
                        setSwiperHeight: function () {
                            var that = this;
                            setTimeout(function () {
                                0 == that.current
                                    ? t
                                          .createSelectorQuery()
                                          .in(that)
                                          .select('#content-wrap')
                                          .boundingClientRect(function (t) {
                                              that.swiperHeight = t.height;
                                          })
                                          .exec(function (t) {
                                              that.swiperHeight = t[0].height;
                                          })
                                    : t
                                          .createSelectorQuery()
                                          .in(that)
                                          .select('#content-wrap1')
                                          .boundingClientRect(function (t) {
                                              that.swiperHeight = t.height + 30;
                                          })
                                          .exec(function (t) {
                                              that.swiperHeight = t[0].height + 30;
                                          });
                            }, 400);
                        },
                        handleRecordList: function () {
                            this.isShowRankList = true;
                        },
                        handleRecordListClose: function () {
                            this.isShowRankList = false;
                        },
                        handleMaxClick: function () {
                            t.vibrateShort({});
                            this.emitWordTotal - this.limitNum <= 0 || (this.lianjiCiShu = this.emitWordTotal - this.limitNum);
                        },
                        handleJianClick: function () {
                            t.vibrateShort({});
                            1 != this.lianjiCiShu && 0 != this.lianjiCiShu
                                ? (this.lianjiCiShu = this.lianjiCiShu - 1)
                                : t.showToast({
                                      title: '不能再少了哦~',
                                      icon: 'none'
                                  });
                        },
                        handleJiaClick: function () {
                            t.vibrateShort({});
                            this.lianjiCiShu != this.emitWordTotal - this.limitNum
                                ? (this.lianjiCiShu = this.lianjiCiShu + 1)
                                : t.showToast({
                                      title: '已达最大次数~',
                                      icon: 'none'
                                  });
                        },
                        handleCountJian: function () {
                            t.vibrateShort({});
                            1 != this.duocishuNum
                                ? (this.duocishuNum = this.duocishuNum - 1)
                                : t.showToast({
                                      title: '不能再少了哦~',
                                      icon: 'none'
                                  });
                        },
                        handleCountJia: function () {
                            t.vibrateShort({});
                            this.duocishuNum != this.duocishu
                                ? (this.duocishuNum = this.duocishuNum + 1)
                                : t.showToast({
                                      title: '已达最大次数~',
                                      icon: 'none'
                                  });
                        },
                        handleBaoPay: function () {
                            var that = this;
                            t.showLoading({
                                mask: true
                            });
                            this.$http('/renyi/buy_word', 'POST', {
                                renyi_id: this.info.id,
                                total: this.duocishuNum
                            }).then(function (n) {
                                t.hideLoading();
                                setTimeout(function () {
                                    that.$playAudio('open');
                                    setTimeout(function () {
                                        that.openSkus = n.data;
                                        that.isOpenPopup = true;
                                        that.istry = false;
                                        that.isOpen = true;
                                    }, 500);
                                }, 400);
                            });
                        },
                        goOpenBack: function () {
                            this.isOpenPopup = false;
                            this.istry = true;
                            this.isOpen = false;
                            this.limitCx();
                        },
                        limitCx: function () {
                            var that = this;
                            this.$http('/renyis/'.concat(this.uuid, '/limit-cx'), 'GET', {}).then(function (i) {
                                that.lianjiCiShu = 1;
                                that.limitCountNum = i.data.info.count;
                                that.limitNum = i.data.info.num;
                                that.emitTotal = i.data.team.emit_total;
                                that.nowTeamTotal = i.data.team.now_team_total;
                                that.duocishuNum = i.data.info.use_count;
                                that.duocishu = i.data.info.use_count;
                            });
                        },
                        currentTransition: function (t) {},
                        currentChange: function (t) {
                            var i = t.currentTarget.dataset.current;
                            if (i !== this.current) {
                                this.current = i;
                                0 == this.current ? (this.movableX = 0) : (this.movableX = 146);
                            }
                        },
                        currentChange2: function (t) {
                            var that = this;
                            var n = t.detail.current;
                            this.$nextTick(function () {
                                that.setSwiperHeight();
                            });
                            if (n !== this.current) {
                                this.current = n;
                                0 == this.current ? (this.movableX = 0) : (this.movableX = 146);
                            }
                        },
                        handleTry: function () {
                            t.showLoading({
                                title: '刷新中...'
                            });
                            this.initData().then(function (i) {
                                t.hideLoading();
                                t.showToast({
                                    title: '刷新完成~',
                                    icon: 'none'
                                });
                            });
                        },
                        fetchList: function () {
                            if (this.isLoading) {
                                return false;
                            }
                            this.isLoading = true;
                        },
                        addClick: function () {
                            t.vibrateShort({});
                            1 === this.payTotal
                                ? (this.payTotal = this.payTotal + 2)
                                : 3 === this.payTotal
                                ? (this.payTotal = this.payTotal + 7)
                                : t.showToast({
                                      title: '最多十抽哦~',
                                      icon: 'none'
                                  });
                        },
                        minusClick: function () {
                            t.vibrateShort({});
                            3 === this.payTotal
                                ? (this.payTotal = this.payTotal - 2)
                                : 10 === this.payTotal
                                ? (this.payTotal = this.payTotal - 7)
                                : 20 === this.payTotal
                                ? (this.payTotal = this.payTotal - 10)
                                : t.showToast({
                                      title: '最少一抽哦~',
                                      icon: 'none'
                                  });
                        },
                        useFreeTicket: function () {
                            var that = this;
                            t.showLoading({
                                title: '提交中',
                                icon: 'none'
                            });
                            this.$http('/renyi/order/confirm', 'POST', {
                                page_uuid: this.pageUuid,
                                total: 1,
                                is_use_free_ticket: 1
                            }).then(function (n) {
                                t.hideLoading();
                                var e = n.data;
                                e.is_need_pay
                                    ? t.showToast({
                                          title: '兑换出错~',
                                          icon: 'none'
                                      })
                                    : that.paySuccess(e.order);
                            });
                        },
                        getDanmu: function () {},
                        showDetailImagePopup: function (t, i) {
                            t.odds = i;
                            this.skuinfo = t;
                            this.isimagepop = true;
                        },
                        hideDetailImagePopup: function () {
                            this.$refs.detailPopup.close();
                        },
                        isimagepopfun: function () {
                            this.isimagepop = false;
                        },
                        refresh: function () {
                            this.$store.dispatch('getUserInfo');
                        },
                        initData: function () {
                            var that = this;
                            return this.$http('/renyis/'.concat(this.uuid), 'GET', {}).then(function (n) {
                                t.hideLoading();
                                that.lianjiCiShu = 1;
                                that.info = n.data.info;
                                that.config = n.data.config;
                                that.info.sku_level = that.info.sku_level.sort().reverse();
                                that.skusList = n.data.info.skus.filter(function (t) {
                                    return 5 === t.level;
                                });
                                that.emitWordTotal = n.data.info.emit_word_total;
                                that.emitTotal = n.data.info.emit_total;
                                that.nowTeamTotal = n.data.info.now_team_total;
                                if ('[]' != JSON.stringify(n.data.limit)) {
                                    that.limitCountNum = n.data.limit.count;
                                    that.limitNum = n.data.limit.num;
                                    that.duocishu = n.data.limit.use_count;
                                    that.duocishuNum = n.data.limit.use_count;
                                }
                                var e = 1;
                                that.skus_ultimate = that.skusList[0];
                                setInterval(function () {
                                    that.skus_ultimate = that.skusList[e];
                                    if (++e >= that.skusList.length) {
                                        e = 0;
                                    }
                                }, 3000);
                                that.getDanmu();
                                t.setNavigationBarTitle({
                                    title: that.info.title
                                });
                            });
                        },
                        paySuccess: function (t) {
                            var i = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
                            if (arguments.length > 2) {
                                var n = arguments[2];
                            } else {
                                var n = void 0;
                            }
                            this.isTryMode = i;
                            this.order = t;
                            this.is_doubleBoxCard = n;
                            this.isPayPopup = false;
                            this.isShowResultPopup = true;
                            this.refresh();
                            this.initData();
                        },
                        goBack: function () {
                            this.isShowResultPopup = false;
                        },
                        hidePayPopup: function () {
                            this.isPayPopup = false;
                        },
                        pay: function (t) {
                            this.payTotal = t;
                            this.isPayPopup = true;
                        },
                        getLevelIcon: function (t) {
                            return this.skuLevel.find(function (i) {
                                return i.level === t;
                            }).icon;
                        }
                    },
                    onPageScroll: function (t) {}
                };
                i.default = a;
            }.call(this, n('543d').default));
        },
        '759c': function (t, i, n) {
            'use strict';

            n.r(i);
            var e = n('c04d');
            var o = n('e6b2');
            for (var u in o) {
                if (['default'].indexOf(u) < 0) {
                    (function (t) {
                        n.d(i, t, function () {
                            return o[t];
                        });
                    })(u);
                }
            }
            n('0876');
            var s = n('f0c5');
            var a = Object(s.a)(o.default, e.b, e.c, false, null, '0edfcd61', null, false, e.a, void 0);
            i.default = a.exports;
        },
        ab6a: function (t, i, n) {
            'use strict';

            (function (t, i) {
                var e = n('4ea4');
                n('18ba');
                e(n('66fd'));
                var o = e(n('759c'));
                t.__webpack_require_UNI_MP_PLUGIN__ = n;
                i(o.default);
            }.call(this, n('bc2e').default, n('543d').createPage));
        },
        c04d: function (t, i, n) {
            'use strict';

            n.d(i, 'b', function () {
                return o;
            });
            n.d(i, 'c', function () {
                return u;
            });
            n.d(i, 'a', function () {
                return e;
            });
            var e = {
                PriceDisplay: function () {
                    return n.e('components/PriceDisplay/PriceDisplay').then(n.bind(null, '6b05'));
                },
                uniPopup: function () {
                    return n.e('uni_modules/uni-popup/components/uni-popup/uni-popup').then(n.bind(null, '0fa2'));
                },
                BoxSkuPopup: function () {
                    return n.e('components/BoxSkuPopup/BoxSkuPopup').then(n.bind(null, 'f1cb'));
                },
                OpenBoxPopupTheme2: function () {
                    return n.e('components/OpenBoxPopupTheme2/OpenBoxPopupTheme2').then(n.bind(null, 'e39b'));
                },
                OpenBoxPopup: function () {
                    return n.e('components/OpenBoxPopup/OpenBoxPopup').then(n.bind(null, '9fe0'));
                },
                FreeTicketFloatBtn: function () {
                    return n.e('components/FreeTicketFloatBtn/FreeTicketFloatBtn').then(n.bind(null, 'ef0dd'));
                },
                Danmus: function () {
                    return n.e('components/Danmus/Danmus').then(n.bind(null, '4bc1'));
                }
            };
            var o = function () {
                var that = this;
                var i =
                    (that.$createElement,
                    that._self._c,
                    that.__map(that.info.sku_level, function (i, n) {
                        return {
                            $orig: that.__get_orig(i),
                            g0: i.odds.toFixed(2)
                        };
                    }));
                var n = that.info.team_skus.length;
                var e = that.info.team_skus.length;
                that.$mp.data = Object.assign(
                    {},
                    {
                        $root: {
                            l0: i,
                            g1: n,
                            g2: e
                        }
                    }
                );
            };
            var u = [];
        },
        e6b2: function (t, i, n) {
            'use strict';

            n.r(i);
            var e = n('7341');
            var o = n.n(e);
            for (var u in e) {
                if (['default'].indexOf(u) < 0) {
                    (function (t) {
                        n.d(i, t, function () {
                            return e[t];
                        });
                    })(u);
                }
            }
            i.default = o.a;
        }
    },
    [['ab6a', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './detail.css';
</style>
